<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String BASE_PATH = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="${BASE_PATH}static/css/commen.css" rel="stylesheet">
    <link href="${BASE_PATH}static/css/public.css" rel="stylesheet">
    <link href="${BASE_PATH}static/css/jujiao.css" rel="stylesheet">
</head>
<body>
<!--头部-->
<div class="g_coun_head">
    <div class="g_coun_head_main clearfix">
        <a class="g_c_h_m_logo fl" href="${BASE_PATH}index.jsp"></a>
        <ul class="g_c_h_m_lists fl">
            <li><a href="${BASE_PATH}index.jsp">首页</a></li>
            <li><a href="${BASE_PATH}businessRisk.jsp">企业风险榜单</a></li>
            <li class="active"><a href="${BASE_PATH}focus.jsp">企业风险聚焦</a></li>
        </ul>
        <div class="g_c_h_m_user fr">
			<span class="busRis_sear fl">
				<input type="text" class="busRis_inpSear fl" placeholder="请输入企业名、人名或其他关键词">
				<input type="button" class="busRis_btnSear fl" value="查处罚">
			</span>
            <a href="" class="g_c_h_m_login fl">登录</a>
            <a href="" class="g_c_h_m_registe fl active">免费注册</a>
        </div>
    </div>
    <p class="g_coun_h_shandow"></p>
</div>
<!--聚焦内容区域-->
<div class="risk_focus">
    <input type="hidden" value="1" id="riskId">
    <!--聚焦内容左侧区域-->
    <div class="focus_left fl">
        <!--聚焦内容左侧分类-->
        <div class="focus_ny" id="focusDetail"></div>
        <!--内容评论-->
        <div class="focus_comment">
            <p class="title">内容评论</p>
            <div class="focus_ment">
                <textarea name="" onfocus="if(this.value=='请输入你要评论的内容') {this.value='';}this.style.color='#333';" onblur="if(this.value=='') {this.value='请输入你要评论的内容';this.style.color='#999';}">请输入你要评论的内容</textarea>
                <div class="focus_ment1">
                    <p class="fl writ">已经输入：<b>60</b>/1000字</p>
                    <input type="submit" value="发布" class="button">
                </div>
            </div>
        </div>
    </div>
    <!--右侧内容区域-->
    <div class="focus_right">
        <!--企业简介-->
        <div class="focus_brief">
            <p class="title">企业简介</p>
            <!-- 企业简介内容-->
            <div class="focus_briefcon" id="comProfile"></div>

        </div>
        <!--风险图谱-->
        <div class="focus_ranking">
            <p class="title">风险图谱</p>
            <!--风险图谱内容-->
            <div class="focus_atlas" id="focus_atlas">
            </div>
        </div>
        <!--关联处罚-->
        <div class="focus_ranking">
            <p class="title">关联处罚</p>
            <div class="focus_punish">
                <ul id="relPun"></ul>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div class="g_coun_foot">
    <div class="g-coun_borBott">
        <div class="g_coun_f_main">
            <div class="g_coun_f_m_top clearfix">
                <div class="g_coun_f_m_t_l fl">
                    <h2 class="g_coun_f_m_t_title fl">企业风险</h2>
                    <ul class="g_coun_f_m_t_list fl">
                        <li>关于我们</li>
                        <li>免责声明</li>
                        <li>服务协议</li>
                        <li>权利通知</li>
                        <li>意见反馈</li>
                        <li>数据服务</li>
                        <li>常见问题</li>
                        <li> 版权声明</li>
                    </ul>
                </div>
                <div class="g_coun_f_m_t_c fl">
                    <h2 class="g_coun_f_m_t_title">联系我们</h2>

                    <p>企业邮箱：xxxxxx@xxxxx.com</p>

                    <p>客服电话：888888888</p>
                </div>
                <div class="g_coun_f_m_t_r fr">
                    <div class="fl g_coun_f_m_t_r_l">
                        <p class="g_coun_f_m_t_r_l_title">微信公众号</p>

                        <p class="g_coun_f_m_t_r_l_pic"></p>
                    </div>
                    <div class="fl g_coun_f_m_t_r_l">
                        <p class="g_coun_f_m_t_r_l_title">征信查APP</p>

                        <p class="g_coun_f_m_t_r_l_pic"></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="g-coun_borTop">
        <div class="g_coun_f_main">
            <div class="g_coun_f_m_bottom">
                <p>版权所有：xxxxxxxxx@2016 JINDIDATA 京ICP备 xxxxxxx</p>

                <p>京公网安备 11010802021795号</p>
            </div>
        </div>
    </div>
</div>
</body>
<script src="${BASE_PATH}static/js/jquery-1.10.2.min.js"></script>
<script src="${BASE_PATH}static/js/echarts.min.js"></script>
<script src="${BASE_PATH}static/js/focus_con.js"></script>
<script>
    //
    var riskFocusDetUrl = '${BASE_PATH}risk/businessRiskMattersDetails';//企业风险聚焦详情接口
    var data ={
        id:$("#riskId").val()
    }
    $.ajax({
        url:riskFocusDetUrl,
        type:'post',
        data:data,
        dataType:'json',
        success:function(data){
            if(data.code==-1){
                alert("查询失败");
                return;
            }
            var data1=data.data;
            var focDetail =//
                    '<p class="lye">'+ data1.title +'</p>'+
                    '<div class="focus_nytime">'+
                    '	<p class="lye1 fl">发布时间：'+ data1.date +'</p>'+
                    '	<p class="lye2 fl">来源：<a href="#">'+ data1.source +'</a></p>'+
                    '</div>'+
                    '<div class="focus_pople">'+
                    '	<a href="#" class="lye1 fl"><b>'+ data1.partakenum +'</b>人参与</a>'+
                    '	<a href="#" class="lye2 fl"><b>'+ data1.commentnum +'</b>评论</a>'+
                    '	<p class="lye3"><a href="'+ data1.sourceurl +'">查看源链接</a></p>'+
                    '</div>'+
                    '<div class="focus_con">'+ data1.content +'</div>';
            var comDetail =//企业简介
                    '<span><img src="'+ data1.compimg +'"></span>'+
                    '<p class="lun1">'+ data1.company +'</p>'+
                    '<div class="focus_briefcon1">'+
                    '	<p class="lun2">法定代表人：'+ data1.corporation +'</p>'+
                    '	<p class="lun3">状态：<b>'+ data1.state +'</b></p>'+
                    '	<p class="lun4">企业类型：'+ data1.comptype +'</p>'+
                    '	<p class="lun4">营业期限：<b>'+ data1.license +'</b></p>'+
                    '	<p class="lun4">核准日期：<b>'+ data1.approvedate +'</b></p>'+
                    '	<p class="lun4" style="line-height: 23px;">注册地址：'+ data1.address +'</p>'+
                    '</div>';
            //关联处罚
            var relPunHtml="";
            $.each(data1.punish,function(j,jtem){
                relPunHtml+='<li><p class="conp fl"><a href="#">'+ jtem.type+'数量</a></p><p class="conp2"><b>'+ jtem.number+'</b>条</p></li>';
            })
            $("#focusDetail").html(focDetail);
            $("#relPun").html(relPunHtml);
            $("#comProfile").html(comDetail);
        }
    })
</script>
</html>
